<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>订单详情</title>
<link href="__PUBLIC__/admin/css/xc.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/xc.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/page.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.admin.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/layer/layer.js"></script>
</head>
<body>
<div class="pd-20">
  <div class="cl pd-5 bg-1 bk-gray">
    <span class="r">
      <!--<a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>-->
      <if condition="($ores[or_ostate] eq 1) && ($ores[or_pstate] eq 2) && ($ores[or_wstate] eq 1)">
      <a class="btn btn-warning radius" href="javascript:;" onclick="layer_show('订单发货','__MODULE__/Order/sendGoods?id={$ores.or_id}','600','400')" ><i class="Hui-iconfont">&#xe603;</i> 去发货</a></if>
      <a class="btn btn-primary radius" href="{:U('Order/orderPrint',array('id'=>$ores[or_id]))}" target="_blank"><i class="Hui-iconfont">&#xe652;</i> 打印订单</a>
      <a class="btn btn-success radius r ml-10 btn-shua" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    </span>
  </div>
  <div class="mt-1">
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr><td colspan="8" style="background-color:#ddd"><b>基本信息</b>
        <!--<font onClick="check('{$ores.or_id}')" class="label label-success radius" style="float:right; padding:5px; cursor:pointer">改价</font>--></td></tr>
        <tr class="text-c">
          <th width="40">订单编号</th>
          <th width="60">订单号</th>
          <th width="80">会员编号</th>
          <!--<th width="80">原价总和</th>-->
          <th width="140">支付金额</th>
          <th width="140">支付方式</th>
          <th width="100">订单状态</th>
          <th width="100">下单时间</th>
        </tr>
      </thead>
      <tr class="text-c">
        <td>{$ores.or_id}</td>
        <td>{$ores.or_batch}</td>
        <td><a onclick="layer_show('会员信息','__MODULE__/User/userShow?id={$ores.or_uid}','','510')" href="javascript:;">{$ores.or_uid}</a></td>

        <!--<td>￥{$ores.or_gprice}</td>-->
        <td><eq name='ores.or_pname' value='1'>免费商品<else />￥{$ores[or_zmon]}<if condition="($ores[or_jmon] gt 0)">+{$ores.or_jmon}积分</if></eq></td>
        <td><eq name='ores.or_pname' value='NULL'>余额支付<else />{$ores.or_pname}</eq></td>
        <td><if condition="($ores[or_ostate] eq 1)">
          <if condition="($ores[or_pstate] eq 1)">待付款
          <elseif condition="($ores[or_pstate] eq 2)" />
            <switch name="ores[or_wstate]"><case value="1">待发货</case><case value="2">待收货</case><default />交易成功</switch>
          </if>
        <elseif condition="($ores[or_ostate] eq 2)"/>交易关闭</if>
        </td>
        <td>{$ores.or_xtime|date='Y-m-d H:i',###}</td>
      </tr>
    </table>
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr><td colspan="7" style="background-color:#ddd"><b>收货信息</b></td></tr>
        <tr class="text-c">
          <th width="40">收件人</th>
          <th width="60">联系电话</th>
          <th width="200">收货地址</th>
          <th width="80">配送方式</th>
        </tr>
      </thead>
      <tr class="text-c">
        <td>{$ores[addre][aname]}</td>
        <td>{$ores[addre][phone]}</td>
        <td>{$ores[addre][addre]}</td>
        <td><if condition="($ores[expre] != '')">{$ores[expre][ename]}&nbsp;&nbsp;
            <if condition="($ores[expre][ecode]!='0')">
              <a class="label label-success radius" href="http://www.kuaidi100.com/chaxun?com={$ores[expre][ecode]}&nu={$ores[expre][enumb]}" target="_blank">物流信息</a>
            </if>
          <else /><span class="label label-danger radius">未发货</span></if>
        </td>
      </tr>
    </table>
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr class="text-c">
          <!--<th width="25"><input type="checkbox" name="" value=""></th>-->
          <th width="240" colspan="2">商品信息</th>
          <th width="80">零售价(元)</th>
          <th width="80">批发价(元)</th>
          <th width="60">数量</th>
        </tr>
      </thead>
      <volist name='goList' id='gvo' key='key'>
      <tr class="text-c">
        <td width="80"><img src="{$gvo.de_gid|goods_thum_images=400,400}" width="100%" alt="{$gvo.de_gname}"></td>
        <td style=" text-align:left;padding:2px;">
          <a href="{:U('/Home/Index/iframe//Goods/details/id/'.$gvo[de_gid])}" title="{$gvo.de_gname}" target="_blank" style="text-decoration: none">{$gvo.de_gname}</a>
          <if condition="($gvo.de_spec neq '')"><p style="color:#999; font-size:12px;">规格：{$gvo.de_spec}</p></if>
        </td>
        <td><if condition="($gvo[de_gprice] gt 0)">{$gvo.de_gprice}+</if><if condition="($gvo[de_jmoney] gt 0)">{$gvo.de_jmoney}积分</if></td>
        <td><if condition="($gvo[de_gmoney] gt 0)">{$gvo.de_gmoney}+</if><if condition="($gvo[de_jmoney] gt 0)">{$gvo.de_jmoney}积分</if></td>
        <td>{$gvo.de_gnum}</td>
      </tr>
      </volist>
      <if condition="($ores[or_note] neq '')">
      <tr class="text-c">
        <td colspan="7" style="text-align:left">买家备注：{$ores.or_note}</td>
      </tr>
      </if>
    </table>
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr><td colspan="7" style="background-color:#ddd"><b>费用信息</b></td></tr>
        <tr class="text-c" >
          <!--<th>原价总和 (元)</th>-->
          <th>商品金额 (元)</th>
          <th>使用积分 (个)</th>
          <th>运费 (元)</th>
          <th>总计 (元)</th>
        </tr>
      <thead>
      <tr class="text-c" >
        <!--<td>{$ores.or_gprice}</td>-->
        <td>{$ores.or_xmon}</td>
        <td>{$ores.or_jmon}</td>
        <td>{$ores.or_fmon}</td>
        <td>￥{$ores[or_zmon]}<if condition="($ores[or_jmon] gt 0)">+{$ores[or_jmon]}积分</if></td>
      </tr>
    </table>
    <table class="table table-border table-bordered table-hover table-bg table-sort mt-10">
      <thead>
        <tr><td colspan="7" style="background-color:#ddd"><b>操作记录</b></td></tr>
        <tr class="text-c" >
          <th>编号</th>
          <th>操作人</th>
          <th>操作信息</th>
          <th>操作备注</th>
          <th>操作时间</th>
        </tr>
      <thead>
      <volist name='reList' id='mvo'>
      <tr class="text-c">
        <td>{$i}</td>
        <td>{$mvo.re_action}</td>
        <td>{$mvo.re_desc}</td>
        <td style="text-align:left">{$mvo.re_remark}</td>
        <td>{$mvo.re_time|date="Y-m-d H:i:s",###}</td>
      </tr>
      </volist>
	</table>
  </div>
</div>
<script type="text/javascript">
//回调函数 
function call_back_fun(v){
	layer.closeAll(); // 关闭窗口
	//ajax_get_table('myfrom1',cur_page);
	location.replace(location.href);
}
</script>
</body>
</html>